package datatypes;

/**
 * Datatyp containing the grading array. 
 * The grading array is array specifing how much a points are needed to archieve a specific grade!
 * 
 * @author Rupert
 *
 */
public class GradingKey {
	
	private double grade10;
	private double grade13;
	private double grade17;
	private double grade20;
	private double grade23;
	private double grade27;
	private double grade30;
	private double grade33;
	private double grade37;
	private double grade40;
	private double grade43;
	private double grade47;
	
	

	public boolean checkCorrectnes(double maxPoints) {
		if(grade10 > maxPoints)
			return false;
		
		if(grade10<grade13)
			return false;
			
		if(grade13<grade17)
			return false;	
			
		if(grade17<grade20)
			return false;
			
		if(grade20<grade23)
			return false;
			
		if(grade23<grade27)
			return false;	
			
		if(grade27<grade30)
			return false;
			
		if(grade30<grade33)
			return false;
			
		if(grade33<grade37)
			return false;
			
		if(grade37<grade40)
			return false;
			
		if(grade40<grade43)
			return false;
			
		if(grade43<grade47)
			return false;
		
		return true;
		
	}

	
	
	/*
	 * SETTERS & GETTERS
	 */
	public double getgrade10() {
		return grade10;
	}

	public void setgrade10(double grade10) {
		this.grade10 = grade10;
	}

	public double getgrade13() {
		return grade13;
	}

	public void setgrade13(double grade13) {
		this.grade13 = grade13;
	}

	public double getgrade17() {
		return grade17;
	}

	public void setgrade17(double grade17) {
		this.grade17 = grade17;
	}

	public double getgrade20() {
		return grade20;
	}

	public void setgrade20(double grade20) {
		this.grade20 = grade20;
	}

	public double getgrade23() {
		return grade23;
	}

	public void setgrade23(double grade23) {
		this.grade23 = grade23;
	}

	public double getgrade27() {
		return grade27;
	}

	public void setgrade27(double grade27) {
		this.grade27 = grade27;
	}

	public double getgrade30() {
		return grade30;
	}

	public void setgrade30(double grade30) {
		this.grade30 = grade30;
	}

	public double getgrade33() {
		return grade33;
	}

	public void setgrade33(double grade33) {
		this.grade33 = grade33;
	}

	public double getgrade37() {
		return grade37;
	}

	public void setgrade37(double grade37) {
		this.grade37 = grade37;
	}

	public double getgrade40() {
		return grade40;
	}

	public void setgrade40(double grade40) {
		this.grade40 = grade40;
	}

	public double getgrade43() {
		return grade43;
	}

	public void setgrade43(double grade43) {
		this.grade43 = grade43;
	}

	public double getgrade47() {
		return grade47;
	}

	public void setgrade47(double grade47) {
		this.grade47 = grade47;
	}

}
